package com.xing.oauth.server.model;

import java.io.Serializable;
import java.util.Date;

public class TokenDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    private Integer id;

    /**
     * nlc会员
     */
    private String nlcId;

    /**
     * 长token
     */
    private String refreshToken;

    /**
     * 短token
     */
    private String accessToken;

    /**
     * 短token有效时间
     */
    private Integer atExpiresIn;

    /**
     * 长token有效时间
     */
    private Integer rtExpiresIn;

    /**
     * token创建时间
     */
    private Date createdDt;

    /**
     * token更新时间
     */
    private Date updatedDt;

    /**
     * 解除绑定的令牌
     */
    private String aligenieToken;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNlcId() {
        return nlcId;
    }

    public void setNlcId(String nlcId) {
        this.nlcId = nlcId;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getAtExpiresIn() {
        return atExpiresIn;
    }

    public void setAtExpiresIn(Integer atExpiresIn) {
        this.atExpiresIn = atExpiresIn;
    }

    public Integer getRtExpiresIn() {
        return rtExpiresIn;
    }

    public void setRtExpiresIn(Integer rtExpiresIn) {
        this.rtExpiresIn = rtExpiresIn;
    }

    public Date getCreatedDt() {
        return createdDt;
    }

    public void setCreatedDt(Date createdDt) {
        this.createdDt = createdDt;
    }

    public Date getUpdatedDt() {
        return updatedDt;
    }

    public void setUpdatedDt(Date updatedDt) {
        this.updatedDt = updatedDt;
    }

    public String getAligenieToken() {
        return aligenieToken;
    }

    public void setAligenieToken(String aligenieToken) {
        this.aligenieToken = aligenieToken;
    }

    @Override
    public String toString() {
        return "TokenDto{" +
                "id=" + id +
                ", nlcId='" + nlcId + '\'' +
                ", refreshToken='" + refreshToken + '\'' +
                ", accessToken='" + accessToken + '\'' +
                ", atExpiresIn=" + atExpiresIn +
                ", rtExpiresIn=" + rtExpiresIn +
                ", createdDt=" + createdDt +
                ", updatedDt=" + updatedDt +
                ", aligenieToken='" + aligenieToken + '\'' +
                '}';
    }
}
